import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  HomePage({Key key}) : super(key: key);

  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          RaisedButton(
            child: Text('表单演示页面'),
            onPressed: () {
              Navigator.pushNamed(context, '/textFeildPage');
            }
          ),
          RaisedButton(
            child: Text('CheckBox'),
            onPressed: () {
              Navigator.pushNamed(context, '/checkBoxPage');
            }
          ),
          RaisedButton(
            child: Text('Radio Switch'),
            onPressed: () {
              Navigator.pushNamed(context, '/radioPage');
            }
          ),
          RaisedButton(
            child: Text('学生管理系统'),
            onPressed: () {
              Navigator.pushNamed(context, '/formPage');
            }
          ),
          RaisedButton(
            child: Text('日期组件'),
            onPressed: () {
              Navigator.pushNamed(context, '/datePicker');
            }
          ),
          RaisedButton(
            child: Text('第三方日期组件'),
            onPressed: () {
              Navigator.pushNamed(context, '/datePickerPub');
            }
          ),
        ], 
      )
    );
  }
}
